window.onload=function(){
	new MaskIt('regBtn','cloBtn','mask','dialog');
    var lists=getByClass('list',$('navigator'));
    for(var i=0;i<lists.length;i++){
        lists[i].onclick=function(){
            for(var j=0;j<lists.length;j++){
                css('del',lists[j],'color');
            }
            css('add',this,'color');
        }
    }
    function reinitIframe(){
			var iframe = document.getElementById("iiframe");
			var bHeight = iframe.contentWindow.document.body.scrollHeight;
			var dHeight = 400;
			var height = Math.max(bHeight, dHeight);
			iframe.height =  height;
   	}
   	window.setInterval(reinitIframe, 200);
	var header = $("header");
	var flag = true;
	setInterval(change,8000);
	function change(){
		if(flag){
			header.className = "header2 pr";
			flag = !flag;
		} else{
			header.className = "header1 pr";
			flag = !flag;
		}
	}
	
}